#include "comp.h"
#include <iostream>
using namespace std;
int main()
{
    double rea1, mni1;
    cout<<"Deystvitel'naya chast' pervogo chisla=";
    cin>>rea1;
    cout<<"Mnimaya chast' pervogo chisla=";
    cin>>mni1;
    double rea2, mni2;
    cout<<"Deystvitel'naya chast' vtorogo chisla=";
    cin>>rea2;
    cout<<"Mnimaya chast' vtorogo chisla=";
    cin>>mni2;
    Comp d(rea1,mni1);
    Comp c(rea2,mni2);
    d.sum(c);
    cout<<d.Re<<"+i"<<d.Im;

    return 0;
}
